
<script>
import SysLog from '../sys/log'
export default {
  name: 'CertificateOprationLog',
  extends: SysLog,
  props: {
    tenantId: {
      type: Number,
      default: null
    }
  },
  data () {
    return {

    }
  },
  methods: {
    init () {},
    tackHeight () {
      this.heightis = 287
      this.adjustTableHeight()
    },
    getDataList () {
      this.dataListLoading = true
      this.$http({
        url: this.$http.adornUrl('/sys/log/list'),
        method: 'get',
        params: this.$http.adornParams({
          'page': this.pageIndex,
          'limit': this.pageSize,
          'key': this.dataForm.key,
          'tenantId': this.tenantId
        })
      }).then(({data}) => {
        if (data && data.code === 0) {
          this.dataList = data.page.list
          this.totalPage = data.page.totalCount
        } else {
          this.dataList = []
          this.totalPage = 0
        }
        this.dataListLoading = false
      })
    }
  }

}
</script>
